package com.fusetech.flow.audit.service.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fusetech.os.core.query.Query;
import com.fusetech.os.core.query.QueryType;
import com.fusetech.os.core.service.dto.BaseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 审核流程DTO
 * @author admin
 * @version 2023-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AuditProcessDTO extends BaseDTO {

	private static final long serialVersionUID = 1L;


	/**
	 * 表单 ID
	 */

	@Query(tableColumn = "a.form_id", javaField = "formId", type = QueryType.EQ)
	@ExcelProperty("表单 ID")
	private String formId;

	/**
	 * 节点名称
	 */
	@NotNull(message="节点名称不能为空")
	@Query(tableColumn = "a.name", javaField = "name", type = QueryType.LIKE)
	@ExcelProperty("节点名称")
	private String name;

	/**
	 * 审核人员 ID
	 */
	@Query(tableColumn = "a.auditor", javaField = "auditor", type = QueryType.EQ)
	@ExcelProperty("审核人员 ID")
	private String auditor;

	/**
	 * 发起角色
	 */

	@Query(tableColumn = "a.auditor_role_user", javaField = "auditorRoleUser", type = QueryType.EQ)
	@ExcelProperty("发起角色")
	private String auditorRoleUser;

	/**
	 * 备注
	 */

	@Query(tableColumn = "a.remark", javaField = "remark", type = QueryType.LIKE)
	@ExcelProperty("备注")
	private String remark;

}
